home *** CD-ROM | disk | FTP | other *** search
/ Mac-Source 1994 July / Mac-Source_July_1994.iso / Other Langs / MacPerl ƒ / Perl Source ƒ / Perl / SubLaunch.a < prev    next >
Text File  |  1993-10-23  |  967b  |  44 lines

  1. **********************************************************************
  2. * Project    :    SubLaunch            -    Call ToolServer
  3. * File        :    SubLaunch.a            -    WrappedLaunchApplication
  4. * Author        :    Matthias Neeracher
  5. * Started    :    03Jan92                                Language    :    MPW Assembler
  6. * Modified    :    03Jan92    MN    
  7. * Last        :    03Jan92
  8. * Copyright (c) 1992 Matthias Neeracher
  9. *    You may distribute under the terms of the Perl Artistic License,
  10. *    as specified in the README file.
  11. *********************************************************************
  12.  
  13.                     CASE ON
  14.  
  15.                     INCLUDE 'Traps.a'
  16.                     
  17.                     IMPORT    RUNTIME
  18.                     
  19. WRAPPEDLAUNCHAPPLICATION    PROC    EXPORT
  20.                     LINK        A6, #0
  21.                     MOVE.W    #22, -(A7)
  22.                     SUBQ.L    #2, A7
  23.                     PEA         2(A7)
  24.                     JSR        RUNTIME
  25.                     MOVE.L    8(A6), A0
  26.                     _Launch
  27.                     MOVE.W    D0, 12(A6)
  28.                     MOVE.W    #23, -(A7)
  29.                     SUBQ.L    #2, A7
  30.                     PEA         2(A7)
  31.                     JSR        RUNTIME
  32.                     UNLK         A6
  33.                     MOVE.L    (A7)+, A0
  34.                     ADDQ.L    #4, A7
  35.                     JMP        (A0)
  36.                     ENDP
  37.                     
  38.                     END
  39.                     
  40.                     
  41.